package com.fgr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaokai
 * @since 2023-05-09
 */
@TableName("an_animal")
public class Animal implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 动物表主键
     */
    @TableId(value = "an_id", type = IdType.AUTO)
    private Long anId;

    /**
     * 动物类型id与动物类型表主键对应
     */
    private Long anTypeId;

    /**
     * 动物名称
     */
    private String anName;

    /**
     * 动物年龄
     */
    private LocalDate anAge;

    /**
     * 动物描述
     */
    private String anFormation;

    /**
     * 动物状态
     */
    private Integer anStat;

    /**
     * 动物图片
     */
    private String anPicture;

    /**
     * 逻辑删除字段
     */
    private Boolean isDel;

    public Long getAnId() {
        return anId;
    }

    public void setAnId(Long anId) {
        this.anId = anId;
    }

    public Long getAnTypeId() {
        return anTypeId;
    }

    public void setAnTypeId(Long anTypeId) {
        this.anTypeId = anTypeId;
    }

    public String getAnName() {
        return anName;
    }

    public void setAnName(String anName) {
        this.anName = anName;
    }

    public LocalDate getAnAge() {
        return anAge;
    }

    public void setAnAge(LocalDate anAge) {
        this.anAge = anAge;
    }

    public String getAnFormation() {
        return anFormation;
    }

    public void setAnFormation(String anFormation) {
        this.anFormation = anFormation;
    }

    public Integer getAnStat() {
        return anStat;
    }

    public void setAnStat(Integer anStat) {
        this.anStat = anStat;
    }

    public String getAnPicture() {
        return anPicture;
    }

    public void setAnPicture(String anPicture) {
        this.anPicture = anPicture;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "Animal{" +
        "anId = " + anId +
        ", anTypeId = " + anTypeId +
        ", anName = " + anName +
        ", anAge = " + anAge +
        ", anFormation = " + anFormation +
        ", anStat = " + anStat +
        ", anPicture = " + anPicture +
        ", isDel = " + isDel +
        "}";
    }
}
